package net.ycxinxing.mcpebox.ui;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.widget.LinearLayout;
import java.io.IOException;
import net.ycxinxing.mcpebox.baseActivity;

public class RebotActivity extends baseActivity
{

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		// TODO: Implement this method
		super.onCreate(savedInstanceState);
		LinearLayout view=new LinearLayout(this);
		setContentView(view);
		new Handler().postDelayed(new Runnable(){
				@Override
				public void run()
				{
					startActivity(new Intent(RebotActivity.this,MainActivity.class));
					int pid = android.os.Process.myPid();
					String command = "kill " + pid;
					try
					{
						Runtime.getRuntime().exec(command);
					}
					catch (IOException e)
					{
// TODO Auto-generated catch block
						e.printStackTrace();
					}
					// TODO: Implement this method
				}
			}, 1500);
	}
	
}
